package com.jbit.examSystem.service;

import com.jbit.examSystem.exception.LoginErrorException;
import com.jbit.examSystem.exception.RegisterException;
import com.jbit.examSystem.pojo.Student;
import com.jbit.examSystem.dto.UserDto;
import com.jbit.examSystem.pojo.User;

import java.util.Date;
import java.util.List;

public interface StudentService {
    void register(UserDto userDto) throws RegisterException;

    Student login(UserDto userDto) throws LoginErrorException;

    Student checkEmail(String receiveMailAccount);

    void setLoginTime(Date loginTime,Integer id,Date lastLoginTime)throws LoginErrorException;

    void updateInfo(Student student);

    void updatePwd(User user);

    Boolean verify(Integer identityId,String name,String oldPwd);

    Student findById(Integer id);

    List<User> getAllStudent(String userName);
}
